import { MockMethod } from 'vite-plugin-mock';

export default [
  {
    url: '/api/test',
    method: 'get',
    response() {
      // console.log('res => ', req);
      return {
        code: 0,
        msg: 'test',
        data: {
          list: Array(500000)
            .fill(1)
            .map((item) => ({
              index: item,
              name: item,
              age: item,
              cover: 'https://pinia.vuejs.org/logo.svg'
            }))
        }
      };
    }
  }
] as MockMethod[];
